package com.naiterui.ehp.bs.patient.bo.notice.subscribe;

import com.naiterui.ehp.bs.patient.config.SubscribeProperties;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 申请结果通知-订阅通知，续方模板
 *
 * @author yangfuya
 * @version 1.0
 * @date 2021/4/8 16:14
 **/
@Data
@Builder
@AllArgsConstructor
public class ApplyResultSubscribe extends BaseSubscribe{

    private static final long serialVersionUID = -5959329617813289838L;
    /**
     * 结果
     */
    private String result;

    /**
     * 时间
     */
    private String time;

    /**
     * 描述
     */
    private String describe;

    @Override
    public String getTemplateLabel() {
        return "APPLY_RESULT";
    }

    @Override
    public void handleContent(List<SubscribeProperties.Content> contentList) {
        Map<String, String> formatMap = new HashMap<>();
        formatMap.put("RESULT", getResult());
        formatMap.put("TIME", getTime());
        formatMap.put("DESCRIBE", getDescribe());
        super.formatData(contentList,formatMap);
    }
}
